import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;

public class Test21 {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> queue = new LinkedBlockingDeque<>();
        // 入队列 操作
        queue.put("hello");

        // 出队列 操作
        String s = queue.take();

    }
}
